package jgl.vajra.kingkong.widget.bean;

import androidx.databinding.BaseObservable;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/9/17.
 */

public class WebViewInfo extends BaseObservable implements Parcelable {
    public String url;
    public String title;
    public String id;
    public int fromType;

    protected WebViewInfo(Parcel in) {
        url = in.readString();
        title = in.readString();
        id = in.readString();
        fromType = in.readInt();
    }

    public WebViewInfo() {
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(url);
        dest.writeString(title);
        dest.writeString(id);
        dest.writeInt(fromType);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WebViewInfo> CREATOR = new Creator<WebViewInfo>() {
        @Override
        public WebViewInfo createFromParcel(Parcel in) {
            return new WebViewInfo(in);
        }

        @Override
        public WebViewInfo[] newArray(int size) {
            return new WebViewInfo[size];
        }
    };
}
